#include<iostream>
using namespace std;

class A{
public:
    int m;
};

int main(){
    int A::*p;    
    p = &A::m;  

    A A1;
    A1.*p=5;     
    cout<<A1.m<<endl;
    return 0;
}

